package com.lizeng.manage.pojo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 登录用户
 * 
 * @author 符冬
 * 
 */
@Entity
public class Users implements Serializable {
	private static final long serialVersionUID = 9103932333773581772L;
	@Id
	@GeneratedValue
	private Long sid;
	// 用户名
	@Column(length = 30, unique = true, nullable = false)
	private String userName;
	// 密码
	@Column(length = 30, nullable = false)
	private String userPwd;
	// 注册时间
	@Temporal(TemporalType.TIMESTAMP)
	private Date createDate = new Date();
	// 是否可用
	private Boolean isVisible = false;
	// 是否超级用户
	private Boolean isSuper = false;

	public Long getSid() {
		return sid;
	}

	public void setSid(Long sid) {
		this.sid = sid;
	}

	public String getUserName() {
		return userName;
	}

	public Boolean getIsSuper() {
		return isSuper;
	}

	public void setIsSuper(Boolean isSuper) {
		this.isSuper = isSuper;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserPwd() {
		return userPwd;
	}

	public void setUserPwd(String userPwd) {
		this.userPwd = userPwd;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Boolean getIsVisible() {
		return isVisible;
	}

	public void setIsVisible(Boolean isVisible) {
		this.isVisible = isVisible;
	}

}
